#! /bin/bash

# 打包并上传
cd unpackage/dist/build/
tar -zcvf app.tar.gz web
scp app.tar.gz app@47.115.228.93:/home/app/workspace/project/yinshua-web/
cd -

# 执行替换
ssh app@47.115.228.93 "bash /home/app/workspace/project/yinshua-web/appBuild.sh"
